package cn.wjh.business.service;

import cn.wjh.business.domain.vo.MailVo;
import cn.wjh.business.domain.vo.RegisterVo;

/*邮箱服务*/
public interface IMailService {

	/**
	 * 发送邮箱验证码
	 *
	 * @param email 目标邮箱
	 * @param title 邮件主题
	 */
	boolean sendVerificationCode(String email, String title);

	/**
	 * 校验验证码
	 *
	 * @param title 邮件主题
	 * @param email 邮箱
	 * @param code  验证码
	 */
	boolean verifyCode(String title, String email, String code);
	boolean verifyCode(MailVo mailVo);
	boolean verifyCode(RegisterVo mailVo);
}
